package src

import (
	"RCDN-gin/src/module/user"
	"fmt"

	"github.com/gin-gonic/gin"
)

func Bootstrap() {
	app := gin.Default()
	app.GET("/", func(c *gin.Context) {
		c.JSON(200,
			gin.H{
				"hello": "Here is Respiratory Chronic Disease Management - Server Side",
			})
	})
	user.Module(app)

	err := app.Run(":2400")
	fmt.Println("App is running on 8080")
	fmt.Println(err)
}
